package Exec03;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: yg
 * @create 2025-02-02 - 15:44
 * @
 */
public interface AccountMapper {
    List<Account> selectAll();
    Account selectById(int id);
//    List<Account> selectByCondition(@Param("username") String username,  @Param("balance") Double balance);
//    List<Account> selectByCondition(Account account);
    List<Account> selectByCondition(Map map);
    List<Account> selectByConditionSingle(Account account);
    void add(Account account);
    void update(Account account);
    @Delete("delete from account where id = #{id}")
    void deleteById(int id);
    void deleteByIds(int[] ids);
}
